home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / wtj008.zip / OBJECTS.ZIP / TSTRINGS.H < prev    next >
Text File  |  1992-05-17  |  965b  |  40 lines

  1. #if !defined( __TSTRINGS_H)
  2. #define __TSTRINGS_H
  3.  
  4. #if !defined( __WINDOWS_H )
  5. #include <windows.h>
  6. #endif
  7. #if !defined(EXPORT)
  8. #define EXPORT _export
  9. #endif
  10.  
  11. #if defined( __cplusplus )
  12. extern "C" {
  13. #endif  /* __cplusplus */
  14.  
  15. typedef struct TString       FAR *PString;
  16. #if defined( __cplusplus )
  17. typedef struct TString       FAR &RString;
  18. #else
  19. typedef struct TString       FAR *RString;
  20. #endif
  21.  
  22. typedef struct TString
  23. {
  24.   LPSTR sString;
  25.   LPSTR (FAR EXPORT PASCAL *sGetString)(RString sSelf);
  26.   void (FAR EXPORT PASCAL *sDone)(RString sSelf);
  27. } TString;
  28.  
  29. extern int FAR EXPORT PASCAL TStringInit(LPSTR AString, RString sSelf);
  30.   //-Initialize an instance of a TString
  31.  
  32. //default "virtual member functions" for TString
  33. extern LPSTR FAR EXPORT PASCAL TStringsGetString(RString sSelf);
  34. extern void FAR EXPORT PASCAL TStringsDone(RString sSelf);
  35.  
  36. #if defined( __cplusplus )
  37. }
  38. #endif  /* __cplusplus */
  39. #endif  /* __TSTRINGS_H */
  40.